_manifest.ts 678 B

12345678910111213141516171819202122
  1. import { getI18n } from "locales/server";
  2. import { SiteConfig } from "@/shared/config/site-config";
  3. import type { MetadataRoute } from "next";
  4. export default async function manifest(): Promise<MetadataRoute.Manifest> {
  5. const t = await getI18n();
  6. return {
  7. name: SiteConfig.title,
  8. short_name: SiteConfig.title,
  9. description: SiteConfig.description,
  10. start_url: "/",
  11. display: "standalone",
  12. background_color: "#fff",
  13. theme_color: SiteConfig.brand.primary,
  14. icons: [
  15. { src: "/android-chrome-192x192.png", sizes: "192x192", type: "image/png" },
  16. { src: "/android-chrome-512x512.png", sizes: "512x512", type: "image/png" },
  17. ],
  18. };
  19. }